package com.yami.shop.personnft.common.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yami.shop.personnft.common.model.TransferBatchApply;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TransferBatchApplyService {
	public void save(@Param("transferBatchApply") TransferBatchApply transferBatchApply);
	public void saveBatch(@Param("list") List<TransferBatchApply> list);
	/**
	 * 批量修改
	 *
	 */
	void updateBatch(@Param("list") List<TransferBatchApply> list);
	public void updateIntoStautsByBatchId(@Param("batchId") Long batchId,@Param("status") Integer status,@Param("msg") String msg,@Param("times") Integer times);
	public TransferBatchApply selectIntoStautsByBatchId(@Param("batchId") Long batchId);
	public List<TransferBatchApply> selectListByApplyId(@Param("applyId") String applyId);
	public Integer selectCountByApplyId(@Param("applyId") String applyId);
	public String selectProportionByApplyId(@Param("applyId") String applyId);
	public IPage<TransferBatchApply> selectPageList(Page page, @Param("transferBatchApply") TransferBatchApply transferBatchApply);
	public void updateTimesByBatchId(Long batchId);

	public void updateIntoSurplusContentByBatchId(@Param("batchId") Long batchId,@Param("times") Integer times,@Param("surplusContent")String surplusContent);

	public void updateIntoStautsByBatchIds(@Param("batchIds") List<Long> batchIds,@Param("status") Integer status);
}
